<#import "/spring.ftl" as spring />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<body>
		<div id="welcome" class="alert alert-info">
			Upload file: ${email}
		</div>
		
		<table>
			<th>Images</th>
			<#list images as image>
			<tr>
				<td>
					<a href="${image.url}">${image.nameId}</a>
				</td>
				<td>
					<a href="<@spring.url "/task/image/rotate?blobKey=${image.blobKey}&nameId=${image.nameId}"/>">ROTATE</a>
				</td>
				<td>
					<a href="<@spring.url "/task/image/flip?blobKey=${image.blobKey}&nameId=${image.nameId}"/>">FLIP</a>
				</td>
				<td>
					<a href="<@spring.url "/task/image/lucky?blobKey=${image.blobKey}&nameId=${image.nameId}"/>">LUCKY</a>
				</td>
			</tr>
			</#list>
		</table>
		
	<form action="${blobUploadRedirect}" method="post" enctype="multipart/form-data">
        <input type="file" name="myFile">
		<br>
		<span>File name:</span><input type="text" name="nameId">
        <br>
		<input type="submit" value="Submit">
    </form>

		
	</body>
</html>
